<script setup lang="ts">
import ChannelNav from './components/ChannelNav.vue'
import ArticleList from './components/ArticleList.vue'
</script>

<template>
  <!-- 将当前频道id传递给子组件ChannelNav -->
  <!-- 通过自定义事件将changeChannelId事件注册给子组件，并接收回传的Channelid -->
  <ChannelNav></ChannelNav>

  <!-- 将当前频道id传递给子组件ArticleList -->
  <ArticleList></ArticleList>

  <!-- 路由出口 -->
  <router-view></router-view>
</template>
